<template>
<h1>el开关</h1>
  <el-switch v-model="value1" />
  <el-switch
      v-model="value2"
      class="ml-2"
      style="--el-switch-on-color: #13ce66; --el-switch-off-color: #ff4949"
  />

  <el-switch v-model="isShow" :active-value="false" :inactive-value="true"></el-switch>
  <br>
  <img src="fcq.jpg" v-if="isShow">

  <el-switch v-model="flag1" :active-value="'1'" :inactive-value="'0'"></el-switch>
</template>

<script setup>
import { ref } from 'vue'
const flag1=ref('1');
const isShow=ref(false);
const value1 = ref(true);
const value2 = ref(true);
</script>

<style scoped>

</style>